package com.ciko.code.adapter;

import android.content.Context;

import com.ciko.code.base.adapter.CommonAdapter;
import com.ciko.code.base.adapter.ViewHolder;
import com.ciko.code.http.Req.GetOverTimeFlowsBySelfEty;
import com.ciko.code.utils.DateUtil;
import com.mywork.R;

import java.util.List;

/**
 * Created by Administrator on 2016/2/16.
 */
public class ResListReviewAdapter extends CommonAdapter<Integer> {

    public ResListReviewAdapter(Context context, List<Integer> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);

    }

    @Override
    public void convert(ViewHolder helper, Integer item) {
//        helper.setText(R.id.tv_timeLeave, DateUtil.longToDate(item.getOverTime(), 0));
//        helper.setText(R.id.tv_typeLeave, item.getOverTimeType());
//        helper.setText(R.id.tv_dayCountLeave, item.getOverTimeDays() + "天");
        // TODO 根据state来确定不同的状态
//        switch (item.getWorkFlow().getStatus()) {
//            case 0:
//                helper.setText(R.id.tv_stateLeave, "未审批");
//                break;
//            case 1:
//                helper.setText(R.id.tv_stateLeave, "未审批");
//                break;
//            case 3:
//                helper.setText(R.id.tv_stateLeave, "未审批");
//                break;
//        }
    }

}
